<?php
/**
 * Created by : PhpStorm
 * User: godjarvis
 * Date: 2020/8/11
 * Time: 11:26
 */

namespace App\Model\Entity\DangKou;


use Fresh\Annotation\EntitySetting;
use Fresh\Mvc\Model\Entity;

/**
 * @EntitySetting(tableName="promotion", connection="dangkou")
 */
class Promotion extends Entity
{
    const TYPE_MINUS_AMOUNT = 1;
    const TYPE_REDUCE_PRICE = 2;
    const TYPE_GIFT_FREE = 3;
    const TYPE_COLLOCATION = 4;
    const TYPE_POST_FEE_FREE = 5;

    public static function typeText()
    {
        return [
            self::TYPE_MINUS_AMOUNT => '预减金额',
            self::TYPE_REDUCE_PRICE => '促销降价',
            self::TYPE_GIFT_FREE => '赠送礼品',
            self::TYPE_COLLOCATION => '搭配销售',
            self::TYPE_POST_FEE_FREE => '促销包邮',
        ];
    }
}